package com.schoolcloud.share.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 合集章节结构
 * @TableName set_sections
 */
@TableName(value ="set_sections")
@Data
public class SetSections implements Serializable {
    /**
     * 章节ID
     */
    @TableId(value = "section_id", type = IdType.AUTO)
    private Integer sectionId;

    /**
     * 所属合集ID
     */
    @TableField(value = "set_id")
    private Integer setId;

    /**
     * 章节标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 章节描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 排序序号
     */
    @TableField(value = "sequence")
    private Integer sequence;

    /**
     * 创建时间
     */
    @TableField(value = "created_time")
    private LocalDateTime createdTime;

    /**
     * 更新时间
     */
    @TableField(value = "updated_time")
    private LocalDateTime updatedTime;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
